-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change: attach signature and attach sbom must use STDIN to upload raw string #2637
Breaking change: attach signature and attach sbom must use STDIN to upload raw string #2637
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2637 +/- ##
=======================================
Coverage 30.03% 30.03%
=======================================
Files 146 146
Lines 9283 9283
=======================================
Hits 2788 2788
Misses 6065 6065
Partials 430 430
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
* attach signature --signature=/path/to/signature no longer uploads literal filepath if file does not exist * attach sbom --sbom=/path/to/sbom no longer uploads literal filepath if file does not exist To upload raw string, you shoud using STDIN and --signature=- / --sbom=- echo $SIGNATURE | cosign attach signature --signature=- $IMAGE_DIGEST echo $SBOM | cosign attach sbom --sbom=- $IMAGE_DIGEST Signed-off-by: mozillazg <[email protected]>
5deba6e
to
cad8d45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for this change.
@znewman01 Anything I can help with to get this PR merged? |
Sorry about that! I think I was waiting on CI to pass and then lost track of this PR. Feel free to ping after a couple days in the future if you're waiting on me |
…igstore#2637) * attach signature --signature=/path/to/signature no longer uploads literal filepath if file does not exist * attach sbom --sbom=/path/to/sbom no longer uploads literal filepath if file does not exist To upload raw string, you shoud using STDIN and --signature=- / --sbom=- echo $SIGNATURE | cosign attach signature --signature=- $IMAGE_DIGEST echo $SBOM | cosign attach sbom --sbom=- $IMAGE_DIGEST Signed-off-by: mozillazg <[email protected]>
This makes it much easier to follow along at home. Also: - deleted a few output lines (we were showing them inconsistently) - deleted `cosign attach signature --signature Qr883oPO...` (passing the signature directly) because that doesn't work any more: sigstore/cosign#2637 Signed-off-by: Zachary Newman <[email protected]>
This makes it much easier to follow along at home. Also: - deleted a few output lines (we were showing them inconsistently) - deleted `cosign attach signature --signature Qr883oPO...` (passing the signature directly) because that doesn't work any more: sigstore/cosign#2637 Signed-off-by: Zachary Newman <[email protected]>
This makes it much easier to follow along at home. Also: - deleted a few output lines (we were showing them inconsistently) - deleted `cosign attach signature --signature Qr883oPO...` (passing the signature directly) because that doesn't work any more: sigstore/cosign#2637 Signed-off-by: Zachary Newman <[email protected]>
* Use ttl.sh for signing_with_containers.md examples. This makes it much easier to follow along at home. Also: - deleted a few output lines (we were showing them inconsistently) - deleted `cosign attach signature --signature Qr883oPO...` (passing the signature directly) because that doesn't work any more: sigstore/cosign#2637 Signed-off-by: Zachary Newman <[email protected]> * Fix "Sign and upload a generated payload" example Signed-off-by: Zachary Newman <[email protected]> --------- Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: ltagliaferri <[email protected]> Co-authored-by: ltagliaferri <[email protected]>
Fixed #1307
Summary
Release Note
attach signature --signature=<signature>
no longer uploads literal filepath if the file<signature>
does not existattach sbom --sbom=<sbom>
no longer uploads literal filepath if the file<sbom>
does not exist--signature=-
/--sbom=-
:Documentation